package com.yazi.mxz.common.entity.beans;

import com.myframework.smhj.hibernate.Entity;
import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Table;

/**
 * GoodsReport entity. @author MyEclipse Persistence Tools
 */
@javax.persistence.Entity
@Table(name = "MXZ_GOODS_REPORT", schema = "HCD_DEV")
public class GoodsReport extends Entity implements java.io.Serializable {

	// Fields

	private GoodsReportId id;

	// Constructors

	/** default constructor */
	public GoodsReport() {
	}

	/** full constructor */
	public GoodsReport(GoodsReportId id) {
		this.id = id;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides({
			@AttributeOverride(name = "goodsId", column = @Column(name = "GOODS_ID", precision = 15, scale = 0)),
			@AttributeOverride(name = "memberId", column = @Column(name = "MEMBER_ID", precision = 15, scale = 0)),
			@AttributeOverride(name = "storeId", column = @Column(name = "STORE_ID", precision = 15, scale = 0)),
			@AttributeOverride(name = "companyId", column = @Column(name = "COMPANY_ID", precision = 15, scale = 0)),
			@AttributeOverride(name = "dateTime", column = @Column(name = "DATE_TIME", precision = 15, scale = 0)),
			@AttributeOverride(name = "timeType", column = @Column(name = "TIME_TYPE", nullable = false, precision = 2, scale = 0)),
			@AttributeOverride(name = "belongType", column = @Column(name = "BELONG_TYPE", precision = 2, scale = 0)),
			@AttributeOverride(name = "revenue", column = @Column(name = "REVENUE", precision = 8)),
			@AttributeOverride(name = "cost", column = @Column(name = "COST", precision = 8)),
			@AttributeOverride(name = "loss", column = @Column(name = "LOSS", precision = 8)) })
	public GoodsReportId getId() {
		return this.id;
	}

	public void setId(GoodsReportId id) {
		this.id = id;
	}

}